package com.egao.oa.service;

import com.egao.common.core.damon.results.PageResult2;
import com.egao.common.core.web.JsonResult;
import com.egao.common.system.entity.User;
import com.egao.oa.entity.Oa_schedule;
import org.apache.poi.ss.formula.functions.T;
import java.util.List;

/**
 * 行程计划提醒服务类
 * @author : Doman
 * @date : 2020-09-18 14:18:11
 * @version ：1.0
 */
public interface ScheduleService /*extends IService<Oa_schedule>*/ {

    /**
     * 分页查询
     */
    //PageResult<Oa_schedule> listPage(PageParam<Oa_schedule> page);

    /**
     * 查询所有
     */
    //List<Oa_schedule> listAll(Map<String, Object> page);

    /**
	 * 分页查询
	 * @param page
	 * @param oa_schedule
	 * @return
	 */
	public JsonResult list(PageResult2<T> page, Oa_schedule oa_schedule, User loginUser) throws Exception;

	/**
	 * 获取list
	 * @param oa_schedule
	 * @return
	 */
	public List<Oa_schedule> list(Oa_schedule oa_schedule, User loginUser);

	/**
	 * 根据Id查询
	 * @param oa_schedule
	 * @return
	 */
	public JsonResult getById(Oa_schedule oa_schedule);

	/**
	 * 保存
	 * @param oa_schedule
	 * @param loginUser
	 * @return
	 */
	public JsonResult save(Oa_schedule oa_schedule, User loginUser);

	/**
	 * 修改
	 * @param oa_schedule
	 * @param loginUser
	 * @return
	 */
	public JsonResult update(Oa_schedule oa_schedule, User loginUser);

	/**
	 * 删除
	 * @param oa_schedule
	 * @param loginUser
	 * @return
	 */
	public JsonResult remove(Oa_schedule oa_schedule, User loginUser);
}
